import pytest

from Page.PurchasePage.PurchaseApplyPage import PurchaseApplyPage
from Page.PurchasePage.PurchaseOrder import PurchaseOrder
from Page.RetailPage.CreateNewOrder import CreateNewOrder
from Page.RetailPage.CreateNewProduct import CreateNewProduct
from Page.RetailPage.CreateNewVIP import CreateNewVIP
from Page.RetailPage.ExceptionProcess import ExceptionProcess
from Page.RetailPage.MultilevelAudit import MultilevelAudit
from Page.UserPage.ErpLoginPage import ErpLoginPage


@pytest.fixture()
def login():
    return ErpLoginPage()

@pytest.fixture()
def purchase():
    return PurchaseApplyPage()

@pytest.fixture(name="po")
def purchase_po():
    return PurchaseOrder()

@pytest.fixture(name="cnv")
def create_new_vip():
    return CreateNewVIP()

@pytest.fixture(name="cnp")
def create_new_product():
    return CreateNewProduct()

@pytest.fixture(name="cno")
def create_new_order():
    return CreateNewOrder()

@pytest.fixture(name="ma")
def multilevel_audit():
    return MultilevelAudit()

@pytest.fixture(name="ep")
def exception_process():
    return ExceptionProcess()